import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/major_event_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/major_event_entity.g.dart';

@JsonSerializable()
class MajorEventEntity {
	late int id=0;
	late int companyId=0;
	late String companyName='';
	late String reportCompanyName='';
	late String dept='';
	late String dutyPerson='';
	late String dutyPersonPhone='';
	late String dutyLeader='';
	late String dutyLeaderPhone='';
	late String eventTime='';
	late String eventAddr='';
	late String eventDesc='';
	late String eventReason='';
	late String measure='';
	late int measureWay=0;
	late String remark='';
	late String createTime='';

	MajorEventEntity();

	factory MajorEventEntity.fromJson(Map<String, dynamic> json) => $MajorEventEntityFromJson(json);

	Map<String, dynamic> toJson() => $MajorEventEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}